home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 94 / CD-ROM 94.iso / util / weban / setup.msi / Cabs.w23.cab / cmdReportList.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2002-03-22  |  986 b   |  27 lines

  1. <?xml version="1.0"?> 
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3.  
  4. <xsl:variable name="Assessment">
  5.   <c score="1" text="Incomplete Scan"/>
  6.   <c score="2" text="Severe Risk"/>
  7.   <c score="3" text="Potential Risk"/>
  8.   <c score="4" text="Security FYIs"/>
  9.   <c score="5" text="Strong Security"/>
  10. </xsl:variable>
  11. <xsl:variable name="CR" select="'
  12. '"/>
  13. <xsl:template match="/">
  14. Computer Name,  IP Address,  Assessment,  Report Name
  15. -----------------------------------------------------
  16. <xsl:for-each select="Reports">
  17. <xsl:apply-templates>
  18. </xsl:apply-templates>
  19. </xsl:for-each>
  20. </xsl:template>
  21.     
  22. <xsl:template match="Report">
  23.     <xsl:param name="score" select="@grade"/>
  24.     <xsl:value-of select="@computer"/>, <xsl:value-of select="@ip"/>, <xsl:value-of select="document('')/*/xsl:variable[@name='Assessment']/c[@score=$score]/@text"/>, <xsl:value-of select="@file"/><xsl:value-of select="$CR"/>
  25. </xsl:template>
  26.     
  27. </xsl:stylesheet>